
idf_component_register(SRCS 
    cutils.c
    libregexp.c
    libunicode.c
    quickjs.c
    xsum.c
    quickjs-libc.c
    
    INCLUDE_DIRS "."
)

target_compile_definitions(${COMPONENT_LIB} PRIVATE __wasi__ __esp32__)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-incompatible-pointer-types -Wno-uninitialized)

# list(APPEND qjs_defines _GNU_SOURCE)